import React, { Component } from 'react'
import {Route, Switch, Redirect} from 'react-router-dom'
import ProuceHome from './home'
import ProuceDetail from './detail'
import ProuceAddUpdate from './add-update'
import './product.less'


export default class Produce extends Component {
  render() {
    return (
      <Switch>
        <Route path="/product/home" component={ProuceHome} exact />
        <Route path="/product/detail" component={ProuceDetail} />
        <Route path="/product/add-update" component={ProuceAddUpdate} />
        <Redirect to="/product/home" />
      </Switch>
    )
  }
}
